/*jslint node:true*/
'use strict';

var net = require('net');
var client = net.connect(8888, function () {
    console.log('连接到服务器');
});
client.on('data', function (data) {
    console.log(data.toString());
    client.end();
});
client.on('end', function () {
    console.log('断开服务器连接');
});